﻿<?php 

$con= mysql_connect('localhost','root','');
mysql_query("set names 'utf8' ");
mysql_query("set character_set_client=utf8");
mysql_query("set character_set_results=utf8");
if (!$con)
{
	 die('Could not connect: ' . mysql_error());
}
mysql_select_db("map",$con);
$sql1 ="SELECT province FROM map";
$result1=mysql_query($sql1);
$res1=array();
$res2=array();

while($row =mysql_fetch_array($result1)){

	array_push($res1,$row[0]);
};

$sql2 ="SELECT num FROM map";
$result2=mysql_query($sql2);

while($row =mysql_fetch_array($result2)){
	array_push($res2,$row[0]);
};
$res=array_merge($res1,$res2);
echo json_encode($res,JSON_UNESCAPED_UNICODE);


?>
	

